class AddQueuedMethodsTable< ActiveRecord::Migration
  def self.up
    create_table :queued_methods do |t|
      t.column :object, :text
      t.column :called_method, :string
      t.column :params, :text
      t.column :created_at, :datetime
      t.column :ran_at, :datetime
      t.column :taken_at, :datetime
      t.column :completed_at, :datetime
      t.column :cancelled_at, :datetime
      t.column :results, :text
      t.column :failed, :boolean, :default => false
    end
  end

  def self.down
    drop_table :queued_methods
  end
end
